home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / macros / plain / contrib / verbatim.tex < prev    next >
LaTeX Document  |  1992-08-26  |  1.5 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: LaTeX Document (document/latex).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert LaTeX Document (document/latex) magic Supported
100% dexvert Texinfo Document (document/texInfo) magic Supported
1% dexvert Corel 10 Texture (image/corel10Texture) ext Unsupported
1% dexvert Croteam texture file (image/croteamTextureFile) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file TeX document text default
99% file LaTeX document text default
98% file LaTeX auxiliary file, ASCII text default
100% checkBytes Printable ASCII default
100% perlTextCheck Likely Text (Perl) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime text/x-matlab default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 25 20 2d 2a 2d 20 4d 6f | 64 65 3a 20 54 65 58 20 |% -*- Mo|de: TeX |
|00000010| 2d 2a 2d 0a 0a 5c 69 66 | 78 5c 74 68 69 73 66 69 |-*-..\if|x\thisfi|
|00000020| 6c 65 69 73 5c 61 6e 55 | 6e 64 65 66 69 6e 65 64 |leis\anU|ndefined|
|00000030| 4d 61 63 72 6f 5c 69 6e | 70 75 74 20 6d 61 79 62 |Macro\in|put mayb|
|00000040| 65 6c 6f 61 64 20 5c 66 | 69 0a 0a 5c 74 68 69 73 |eload \f|i..\this|
|00000050| 66 69 6c 65 69 73 7b 3c | 65 62 2e 74 65 78 2e 74 |fileis{<|eb.tex.t|
|00000060| 65 78 6c 6f 63 61 6c 3e | 76 65 72 62 61 74 69 6d |exlocal>|verbatim|
|00000070| 7d 20 25 20 61 62 6f 72 | 74 20 6c 6f 61 64 69 6e |} % abor|t loadin|
|00000080| 67 20 69 66 20 77 65 27 | 72 65 20 61 6c 72 65 61 |g if we'|re alrea|
|00000090| 64 79 20 6c 6f 61 64 65 | 64 0a 0a 5c 69 6e 70 75 |dy loade|d..\inpu|
|000000a0| 74 20 72 65 64 65 66 69 | 6e 65 0a 0a 25 20 54 68 |t redefi|ne..% Th|
|000000b0| 69 73 20 66 69 6c 65 20 | 70 72 6f 76 69 64 65 73 |is file |provides|
|000000c0| 20 61 20 77 61 79 20 6f | 66 20 64 65 66 69 6e 69 | a way o|f defini|
|000000d0| 6e 67 20 6e 65 77 20 76 | 65 72 62 61 74 69 6d 20 |ng new v|erbatim |
|000000e0| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 73 2c 20 77 68 |environm|ents, wh|
|000000f0| 69 63 68 20 69 73 0a 25 | 20 6f 74 68 65 72 77 69 |ich is.%| otherwi|
|00000100| 73 65 20 64 69 66 66 69 | 63 75 6c 74 2e 20 20 54 |se diffi|cult. T|
|00000110| 68 65 20 27 5c 6e 65 77 | 76 65 72 62 61 74 69 6d |he '\new|verbatim|
|00000120| 65 6e 76 69 72 6f 6e 6d | 65 6e 74 27 20 64 65 63 |environm|ent' dec|
|00000130| 6c 61 72 61 74 69 6f 6e | 20 69 73 20 6a 75 73 74 |laration| is just|
|00000140| 20 6c 69 6b 65 0a 25 20 | 74 68 65 20 27 5c 6e 65 | like.% |the '\ne|
|00000150| 77 65 6e 76 69 72 6f 6e | 6d 65 6e 74 27 20 64 65 |wenviron|ment' de|
|00000160| 63 6c 61 72 61 74 69 6f | 6e 20 65 78 63 65 70 74 |claratio|n except|
|00000170| 20 74 68 61 74 20 74 68 | 65 20 73 74 75 66 66 20 | that th|e stuff |
|00000180| 69 6e 20 62 65 74 77 65 | 65 6e 20 5c 62 65 67 69 |in betwe|en \begi|
|00000190| 6e 7b 66 6f 6f 7d 0a 25 | 20 61 6e 64 20 5c 65 6e |n{foo}.%| and \en|
|000001a0| 64 7b 66 6f 6f 7d 20 69 | 73 20 72 65 61 64 20 77 |d{foo} i|s read w|
|000001b0| 69 74 68 20 74 68 65 20 | 73 70 65 63 69 61 6c 20 |ith the |special |
|000001c0| 73 79 6e 74 61 78 20 6f | 66 20 76 65 72 62 61 74 |syntax o|f verbat|
|000001d0| 69 6d 20 6d 6f 64 65 2e | 0a 25 0a 0a 5c 6d 61 6b |im mode.|.%..\mak|
|000001e0| 65 61 74 6c 65 74 74 65 | 72 0a 0a 25 20 46 69 72 |eatlette|r..% Fir|
|000001f0| 73 74 2c 20 64 69 73 70 | 61 74 63 68 20 64 65 70 |st, disp|atch dep|
|00000200| 65 6e 64 69 6e 67 20 6f | 6e 20 77 68 65 74 68 65 |ending o|n whethe|
|00000210| 72 20 74 68 65 72 65 20 | 69 73 20 61 6e 20 6f 70 |r there |is an op|
|00000220| 74 69 6f 6e 61 6c 20 61 | 72 67 75 6d 65 6e 74 2e |tional a|rgument.|
|00000230| 0a 0a 5c 64 65 66 5c 6e | 65 77 76 65 72 62 61 74 |..\def\n|ewverbat|
|00000240| 69 6d 65 6e 76 69 72 6f | 6e 6d 65 6e 74 23 31 7b |imenviro|nment#1{|
|00000250| 5c 40 69 66 6e 65 78 74 | 63 68 61 72 0a 20 20 20 |\@ifnext|char. |
|00000260| 20 20 5b 7b 5c 40 6e 65 | 77 40 76 40 65 6e 76 7b | [{\@ne|w@v@env{|
|00000270| 23 31 7d 7d 7b 5c 40 6e | 65 77 40 76 40 65 6e 76 |#1}}{\@n|ew@v@env|
|00000280| 7b 23 31 7d 5b 30 5d 7d | 7d 0a 0a 25 20 49 6e 20 |{#1}[0]}|}..% In |
|00000290| 74 68 65 20 64 65 66 69 | 6e 69 74 69 6f 6e 20 6f |the defi|nition o|
|000002a0| 66 20 5c 40 6e 65 77 40 | 76 40 65 6e 76 2c 20 74 |f \@new@|v@env, t|
|000002b0| 68 65 20 65 61 73 79 20 | 70 61 72 74 20 28 64 65 |he easy |part (de|
|000002c0| 66 69 6e 69 74 69 6f 6e | 20 6f 66 20 5c 65 6e 64 |finition| of \end|
|000002d0| 46 4f 4f 29 20 63 6f 6d | 65 73 0a 25 20 66 69 72 |FOO) com|es.% fir|
|000002e0| 73 74 2e 20 20 54 68 65 | 20 64 65 66 69 6e 69 74 |st. The| definit|
|000002f0| 69 6f 6e 20 6f 66 20 5c | 46 4f 4f 56 45 52 42 41 |ion of \|FOOVERBA|
|00000300| 54 49 4d 20 69 73 20 68 | 61 72 64 65 72 2c 20 61 |TIM is h|arder, a|
|00000310| 6e 64 20 66 69 6e 61 6c | 6c 79 20 5c 46 4f 4f 20 |nd final|ly \FOO |
|00000320| 69 73 20 64 65 66 69 6e | 65 64 0a 25 20 74 6f 20 |is defin|ed.% to |
|00000330| 68 61 76 65 20 5c 76 65 | 72 62 40 73 79 6e 74 61 |have \ve|rb@synta|
|00000340| 78 5c 46 4f 4f 56 45 52 | 42 41 54 49 4d 20 61 74 |x\FOOVER|BATIM at|
|00000350| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 69 74 73 20 | the end| of its |
|00000360| 65 78 70 61 6e 73 69 6f | 6e 2e 0a 0a 5c 64 65 66 |expansio|n...\def|
|00000370| 5c 40 6e 65 77 40 76 40 | 65 6e 76 23 31 5b 23 32 |\@new@v@|env#1[#2|
|00000380| 5d 23 33 23 34 7b 5c 65 | 78 70 61 6e 64 61 66 74 |]#3#4{\e|xpandaft|
|00000390| 65 72 5c 64 65 66 5c 63 | 73 6e 61 6d 65 20 65 6e |er\def\c|sname en|
|000003a0| 64 23 31 5c 65 6e 64 63 | 73 6e 61 6d 65 7b 23 34 |d#1\endc|sname{#4|
|000003b0| 7d 5c 72 65 6c 61 78 0a | 20 20 20 5c 65 78 70 61 |}\relax.| \expa|
|000003c0| 6e 64 61 66 74 65 72 5c | 64 65 66 40 76 65 72 62 |ndafter\|def@verb|
|000003d0| 61 74 69 6d 5c 63 73 6e | 61 6d 65 20 23 31 56 45 |atim\csn|ame #1VE|
|000003e0| 52 42 41 54 49 4d 5c 65 | 6e 64 63 73 6e 61 6d 65 |RBATIM\e|ndcsname|
|000003f0| 7b 23 31 7d 7b 23 23 31 | 5c 65 6e 64 7b 23 31 7d |{#1}{##1|\end{#1}|
|00000400| 7d 5c 72 65 6c 61 78 0a | 20 20 20 5c 65 78 70 61 |}\relax.| \expa|
|00000410| 6e 64 61 66 74 65 72 5c | 6e 65 77 63 6f 6d 6d 61 |ndafter\|newcomma|
|00000420| 6e 64 5c 63 73 6e 61 6d | 65 20 23 31 5c 65 6e 64 |nd\csnam|e #1\end|
|00000430| 63 73 6e 61 6d 65 0a 20 | 20 20 20 20 20 20 5b 23 |csname. | [#|
|00000440| 32 5d 7b 23 33 5c 76 65 | 72 62 40 73 79 6e 74 61 |2]{#3\ve|rb@synta|
|00000450| 78 5c 63 73 6e 61 6d 65 | 20 23 31 56 45 52 42 41 |x\csname| #1VERBA|
|00000460| 54 49 4d 5c 65 6e 64 63 | 73 6e 61 6d 65 7d 7d 0a |TIM\endc|sname}}.|
|00000470| 0a 25 20 44 65 66 69 6e | 65 20 76 65 72 62 61 74 |.% Defin|e verbat|
|00000480| 69 6d 20 73 79 6e 74 61 | 78 2e 0a 0a 5c 64 65 66 |im synta|x...\def|
|00000490| 5c 76 65 72 62 40 73 79 | 6e 74 61 78 7b 5c 6f 62 |\verb@sy|ntax{\ob|
|000004a0| 65 79 6c 69 6e 65 73 5c | 74 74 5c 6c 65 74 5c 64 |eylines\|tt\let\d|
|000004b0| 6f 5c 40 6d 61 6b 65 6f | 74 68 65 72 5c 64 6f 73 |o\@makeo|ther\dos|
|000004c0| 70 65 63 69 61 6c 73 5c | 66 72 65 6e 63 68 73 70 |pecials\|frenchsp|
|000004d0| 61 63 69 6e 67 5c 40 76 | 6f 62 65 79 73 70 61 63 |acing\@v|obeyspac|
|000004e0| 65 73 7d 0a 0a 25 20 46 | 69 6e 61 6c 6c 79 2c 20 |es}..% F|inally, |
|000004f0| 61 6e 20 61 75 78 69 6c | 69 61 72 79 20 66 75 6e |an auxil|iary fun|
|00000500| 63 74 69 6f 6e 20 74 6f | 20 64 65 66 69 6e 65 20 |ction to| define |
|00000510| 61 20 6d 61 63 72 6f 20 | 77 68 6f 73 65 20 61 72 |a macro |whose ar|
|00000520| 67 75 6d 65 6e 74 20 69 | 73 20 64 65 6c 69 6d 69 |gument i|s delimi|
|00000530| 74 65 64 0a 25 20 62 79 | 20 5c 65 6e 64 7b 66 6f |ted.% by| \end{fo|
|00000540| 6f 7d 20 69 6e 20 73 70 | 65 63 69 61 6c 20 73 79 |o} in sp|ecial sy|
|00000550| 6e 74 61 78 2c 20 5c 64 | 65 66 40 76 65 72 62 61 |ntax, \d|ef@verba|
|00000560| 74 69 6d 7b 5c 43 53 7d | 7b 66 6f 6f 7d 7b 2e 2e |tim{\CS}|{foo}{..|
|00000570| 2e 62 6f 64 79 2e 2e 2e | 7d 2e 0a 0a 5c 62 65 67 |.body...|}...\beg|
|00000580| 69 6e 67 72 6f 75 70 20 | 5c 63 61 74 63 6f 64 65 |ingroup |\catcode|
|00000590| 20 60 7c 3d 30 20 5c 63 | 61 74 63 6f 64 65 20 60 | `|=0 \c|atcode `|
|000005a0| 5b 3d 20 31 0a 5c 63 61 | 74 63 6f 64 65 60 5d 3d |[= 1.\ca|tcode`]=|
|000005b0| 32 20 5c 63 61 74 63 6f | 64 65 20 60 5c 7b 3d 31 |2 \catco|de `\{=1|
|000005c0| 32 20 5c 63 61 74 63 6f | 64 65 20 60 5c 7d 3d 31 |2 \catco|de `\}=1|
|000005d0| 32 0a 5c 63 61 74 63 6f | 64 65 60 5c 5c 3d 31 32 |2.\catco|de`\\=12|
|000005e0| 20 7c 67 64 65 66 7c 64 | 65 66 40 76 65 72 62 61 | |gdef|d|ef@verba|
|000005f0| 74 69 6d 23 31 23 32 23 | 33 5b 7c 64 65 66 23 31 |tim#1#2#|3[|def#1|
|00000600| 23 23 31 5c 65 6e 64 7b | 23 32 7d 5b 23 33 5d 5d |##1\end{|#2}[#3]]|
|00000610| 0a 7c 65 6e 64 67 72 6f | 75 70 0a 0a 5c 6d 61 6b |.|endgro|up..\mak|
|00000620| 65 61 74 6c 65 74 74 65 | 72 0a 0a |eatlette|r.. |
+--------+-------------------------+-------------------------+--------+--------+